package com.app.ui.activity.base;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.app.ui.dialog.DialogCustomWaiting;
import com.retrofits.net.common.RequestBack;

/**
 * Created by Administrator on 2016/9/7.
 */
public class BaseActivity extends AppCompatActivity implements RequestBack {
    private BaseApplication baseApplication;
    private DialogCustomWaiting dialog;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        baseApplication = (BaseApplication) getApplication();
    }


    protected void dialogShow() {
        if (dialog == null) {
            dialog = new DialogCustomWaiting(this);
        }
        dialog.show();
    }

    protected void dialogDismiss() {
        if (dialog == null) {
            return;
        }
        dialog.dismiss();
    }
    @Override
    public void OnBack(int what, Object obj, String msg, String other) {

    }

}
